import { Logger } from "./logger";
import { NestApplication } from "./nest-application";

export class NestFactory {
  // 1. 创建一个nest实例
  static create(module: any) {
    // 启动Nest应用
    Logger.log("Starting Nest application... => 开始创建实例", "NestFactory");
    // 创建Nest应用实例
    const app = new NestApplication(module);
    // 返回Nest应用实例
    return app;
  }
}
